package com.cy.cloud_project_server.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cy.cloud_project_server.dao.UserMapper;
import com.cy.cloud_project_server.entity.User;
import com.cy.cloud_project_server.service.UserService;

/**
 * TODO(Descriptions)
 * @author changyuan
 * @date 2018年10月23日 上午10:21:08
 * @Copyright: 2018 www.birdsh.com Inc. All rights reserved.
 */
@Service
public class UserServiceImpl implements UserService{
    
    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> queryAllUserList() {
        
        return userMapper.queryAllUserList();
    }

    @Override
    public User queryUserById(int id) {
        // TODO Auto-generated method stub
        return userMapper.queryUserById(id);
    }

}
